/**
 * 不同成员类型转义
 */
(function () {
    'use strict';

    angular.module('BlurAdmin.pages')
        .filter('memberTypeFilter', function($sce) {
            return function(type) {
                if(type == "1"){
                    return $sce.trustAsHtml("<span style=\"color: #e8d442\">教师</span>");
                }else if(type == "2"){
                    return $sce.trustAsHtml("<span style='color: #00b0e8'>家长</span>");
                }else if(type == "3"){
                    return "学生";
                }else{
                    return "其他";
                }
            };
        });
})();
